package cn.fzkj.gulimall.product.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @DESCRIPTION 线程池配置类
 * @Author yaya
 * @DATE 2022/8/7
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
public class ThreadPoolProperties {

    private Integer coreSize;
    private Integer maxSize;
    private Integer keepLiveTime;

    public Integer getCoreSize() {
        return coreSize;
    }

    public void setCoreSize(Integer coreSize) {
        this.coreSize = coreSize;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
    }

    public Integer getKeepLiveTime() {
        return keepLiveTime;
    }

    public void setKeepLiveTime(Integer keepLiveTime) {
        this.keepLiveTime = keepLiveTime;
    }
}
